package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.business.service.family.LargeAmountChannelManageService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.LargeAmountChannelManageSearchRequest;
import com.tuanzi.loan.vo.response.family.LargeAmountChannelManageSearchResponse;
import org.springframework.data.domain.Page;

public class LargeAmountChannelManageLazyDataModel extends
        BaseLazyDataModel<LargeAmountChannelManageSearchRequest, LargeAmountChannelManageSearchResponse> {

    private LargeAmountChannelManageService LargeAmountChannelManageService = SpringContextHolder.getBean(LargeAmountChannelManageService.class);

    public LargeAmountChannelManageLazyDataModel(LargeAmountChannelManageSearchRequest largeAmountChannelManageSearchRequest) {
        super(largeAmountChannelManageSearchRequest);
    }

    @Override
    protected Page<LargeAmountChannelManageSearchResponse> doLoad(PageSearcher<LargeAmountChannelManageSearchRequest> pageSearcher) {
        return LargeAmountChannelManageService.list(pageSearcher);
    }
}
